Optimal. Leaf size=48 \[ -\frac {a \left (a+b x^3\right )^{1+p}}{3 b^2 (1+p)}+\frac {\left (a+b x^3\right )^{2+p}}{3 b^2 (2+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {272, 45}
\begin {gather*} \frac {\left (a+b x^3\right )^{p+2}}{3 b^2 (p+2)}-\frac {a \left (a+b x^3\right )^{p+1}}{3 b^2 (p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int x^5 \left (a+b x^3\right )^p \, dx &=\frac {1}{3} \text {Subst}\left (\int x (a+b x)^p \, dx,x,x^3\right )\\ &=\frac {1}{3} \text {Subst}\left (\int \left (-\frac {a (a+b x)^p}{b}+\frac {(a+b x)^{1+p}}{b}\right ) \, dx,x,x^3\right )\\ &=-\frac {a \left (a+b x^3\right )^{1+p}}{3 b^2 (1+p)}+\frac {\left (a+b x^3\right )^{2+p}}{3 b^2 (2+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 40, normalized size = 0.83 \begin {gather*} \frac {\left (a+b x^3\right )^{1+p} \left (-a+b (1+p) x^3\right )}{3 b^2 (1+p) (2+p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 42, normalized size = 0.88
method | result | size |
gosper | \(-\frac {\left (b \,x^{3}+a \right )^{1+p} \left (-x^{3} p b -b \,x^{3}+a \right )}{3 b^{2} \left (p^{2}+3 p +2\right )}\) | \(42\) |
risch | \(-\frac {\left (-b^{2} x^{6} p -b^{2} x^{6}-a p \,x^{3} b +a^{2}\right ) \left (b \,x^{3}+a \right )^{p}}{3 b^{2} \left (2+p \right ) \left (1+p \right )}\) | \(54\) |
norman | \(\frac {x^{6} {\mathrm e}^{p \ln \left (b \,x^{3}+a \right )}}{3 p +6}-\frac {a^{2} {\mathrm e}^{p \ln \left (b \,x^{3}+a \right )}}{3 b^{2} \left (p^{2}+3 p +2\right )}+\frac {p a \,x^{3} {\mathrm e}^{p \ln \left (b \,x^{3}+a \right )}}{3 b \left (p^{2}+3 p +2\right )}\) | \(83\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 47, normalized size = 0.98 \begin {gather*} \frac {{\left (b^{2} {\left (p + 1\right )} x^{6} + a b p x^{3} - a^{2}\right )} {\left (b x^{3} + a\right )}^{p}}{3 \, {\left (p^{2} + 3 \, p + 2\right )} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 58, normalized size = 1.21 \begin {gather*} \frac {{\left ({\left (b^{2} p + b^{2}\right )} x^{6} + a b p x^{3} - a^{2}\right )} {\left (b x^{3} + a\right )}^{p}}{3 \, {\left (b^{2} p^{2} + 3 \, b^{2} p + 2 \, b^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 432 vs.
\(2 (37) = 74\).
time = 1.94, size = 432, normalized size = 9.00 \begin {gather*} \begin {cases} \frac {a^{p} x^{6}}{6} & \text {for}\: b = 0 \\\frac {a \log {\left (x - \sqrt [3]{- \frac {a}{b}} \right )}}{3 a b^{2} + 3 b^{3} x^{3}} + \frac {a \log {\left (4 x^{2} + 4 x \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{3 a b^{2} + 3 b^{3} x^{3}} - \frac {2 a \log {\left (2 \right )}}{3 a b^{2} + 3 b^{3} x^{3}} + \frac {a}{3 a b^{2} + 3 b^{3} x^{3}} + \frac {b x^{3} \log {\left (x - \sqrt [3]{- \frac {a}{b}} \right )}}{3 a b^{2} + 3 b^{3} x^{3}} + \frac {b x^{3} \log {\left (4 x^{2} + 4 x \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{3 a b^{2} + 3 b^{3} x^{3}} - \frac {2 b x^{3} \log {\left (2 \right )}}{3 a b^{2} + 3 b^{3} x^{3}} & \text {for}\: p = -2 \\- \frac {a \log {\left (x - \sqrt [3]{- \frac {a}{b}} \right )}}{3 b^{2}} - \frac {a \log {\left (4 x^{2} + 4 x \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{3 b^{2}} + \frac {x^{3}}{3 b} & \text {for}\: p = -1 \\- \frac {a^{2} \left (a + b x^{3}\right )^{p}}{3 b^{2} p^{2} + 9 b^{2} p + 6 b^{2}} + \frac {a b p x^{3} \left (a + b x^{3}\right )^{p}}{3 b^{2} p^{2} + 9 b^{2} p + 6 b^{2}} + \frac {b^{2} p x^{6} \left (a + b x^{3}\right )^{p}}{3 b^{2} p^{2} + 9 b^{2} p + 6 b^{2}} + \frac {b^{2} x^{6} \left (a + b x^{3}\right )^{p}}{3 b^{2} p^{2} + 9 b^{2} p + 6 b^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.02, size = 51, normalized size = 1.06 \begin {gather*} \frac {{\left (b x^{3} + a\right )}^{2} {\left (b x^{3} + a\right )}^{p}}{3 \, b^{2} {\left (p + 2\right )}} - \frac {{\left (b x^{3} + a\right )}^{p + 1} a}{3 \, b^{2} {\left (p + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.08, size = 68, normalized size = 1.42 \begin {gather*} {\left (b\,x^3+a\right )}^p\,\left (\frac {x^6\,\left (p+1\right )}{3\,\left (p^2+3\,p+2\right )}-\frac {a^2}{3\,b^2\,\left (p^2+3\,p+2\right )}+\frac {a\,p\,x^3}{3\,b\,\left (p^2+3\,p+2\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________